<?php

$TCA['inquiry_answer'] = array(
	'ctrl' => $TCA['inquiry_answer']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'pid,hidden,sys_language_uid,l18n_parent,l18n_diffsource,fk_question_id,answer,hits'
	),
	'types' => array(
		'1' => array('showitem' => 'pid,hidden,answer,fk_question_id,hits')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	),
	'columns' => array(
		'hidden' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.hidden',
			'config'  => array(
				'type' => 'check',
			),
		),
		'fk_question_id' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.question',
			'config'  => array(
				'type' => 'group',
				'internal_type' => 'db',
				'allowed' => 'inquiry_question',
				'minitems' => 0,
				'maxitems' => 1,
				'size' => 1,
				'wizards' => array(
			        'suggest' => array(
			            'type' => 'suggest',
			        ),
			    ),
			),
		),
		'answer' => array(
			'exclude'	=> 0,
			'label'		=> 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.answer',
			'config'	=> array(
				'type'		=> 'input', 
				'size'		=> 128,
				'eval'		=> 'trim,required'
			),
		),
		'hits' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.hits',
			'config'  => array(
				'type' => 'none',
				'size' => 10,
			),
		),
		'sys_language_uid' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.sys_language_uid',
			'config'  => array(
				'type' => 'select',
				'foreign_table' => 'sys_language',
				'foreign_table_where' => ' ORDER BY sys_language.title',
			),
		),
		'l18n_parent' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.l18n_parent',
			'config'  => array(
				'type' => 'input',
				'size' => 4,
				'eval' => 'int',
			),
		),
		'l18n_diffsource' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:inquiry/Resources/Private/Language/locallang_db_answer.xml:answer.l18n_diffsource',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim',
			),
		),
	),
);

?>